package com.now.printer.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Author: wyouflf
 * Date: 13-7-25
 * Time: 下午7:06
 */
@Table(name = "HtmlCollectTable", onCreated = "CREATE UNIQUE INDEX index_htmlName ON HtmlCollectTable(id,htmlName,htmlUrl,htmlImage)")
public class HtmlCollectTable {

    @Column(name = "id", isId = true)
    private int id;

    @Column(name = "htmlName")
    private String htmlName;

    @Column(name = "htmlUrl")
    private String htmlUrl;

    @Column(name = "htmlImage")
    private int htmlImage;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHtmlName() {
        return htmlName;
    }

    public void setHtmlName(String htmlName) {
        this.htmlName = htmlName;
    }

    public String getHtmlUrl() {
        return htmlUrl;
    }

    public void setHtmlUrl(String htmlUrl) {
        this.htmlUrl = htmlUrl;
    }

    public int getHtmlImage() {
        return htmlImage;
    }

    public void setHtmlImage(int htmlImage) {
        this.htmlImage = htmlImage;
    }

    @Override
    public String toString() {
        return "HtmlCollectTable{" +
                "id=" + id +
                ", htmlName='" + htmlName + '\'' +
                ", htmlUrl='" + htmlUrl + '\'' +
                ", htmlImage=" + htmlImage +
                '}';
    }
}
